projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
663bf3d
)
Fix a resizing problem with marks on scales
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Apr 2009 04:50:46 +0000
(
00:50
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Apr 2009 04:50:46 +0000
(
00:50
-0400)
Queue a resize when marks are added to or removed from GtkScale
widgets. This fixes a visual glitch with the 100% mark in
gnome-volume-control.
gtk/gtkscale.c
patch
|
blob
|
history
diff --git
a/gtk/gtkscale.c
b/gtk/gtkscale.c
index 87ba227991b8205c3dabaae3009c8a2a79008445..b738d6dd17c6ff2435c103b92aba47a7002259ab 100644
(file)
--- a/
gtk/gtkscale.c
+++ b/
gtk/gtkscale.c
@@
-1293,6
+1293,8
@@
gtk_scale_clear_marks (GtkScale *scale)
priv->marks = NULL;
_gtk_range_set_stop_values (GTK_RANGE (scale), NULL, 0);
+
+ gtk_widget_queue_resize (GTK_WIDGET (scale));
}
/**
@@
-1349,6
+1351,8
@@
gtk_scale_add_mark (GtkScale *scale,
_gtk_range_set_stop_values (GTK_RANGE (scale), values, n);
g_free (values);
+
+ gtk_widget_queue_resize (GTK_WIDGET (scale));
}